<?php if ( is_home()){ ?>
    <h2>友情链接</h2>
    <ul>
        <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
    </ul>
    <?php } else { ?>
    <h2>声明</h2>
    <span>
        <?php if(theme_options("cr_notice")){?> 
            <?php echo theme_options('cr_notice'); ?> 
        <?php } else { ?> 
            <a target="_blank" href="<?php bloginfo('url'); ?>/wp-admin/themes.php?page=theme-options.php">请点此跳转到后台主题设置处添加您的网站声明或公告</a>
        <?php } ?>
    </span>
<?php } ?>